package com.xuruzi.demo.util.api;

import com.xuruzi.demo.util.BaseResponse;
import com.xuruzi.demo.util.NetWorkCenter;

/**
 * Created by xuruzi on 2020/3/27.
 */

public class BaseApi {

    public BaseResponse excuteGet(String url){
        BaseResponse response = NetWorkCenter.get(url);
        return response;
    }

    public boolean isSuccess(String errCode) {
        return "0".equals(errCode);
    }
}
